package cn.gdcp.ViewHolder;


import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.xinwenkehuduan.R;


public class NewsViewHolder extends RecyclerView.ViewHolder {
    public ImageView ivImg;
    public TextView tvTitle;
    public TextView tvAuthor;
    public TextView tvDate;
    public View itemView;

    public NewsViewHolder(@NonNull View itemView) {
        super(itemView);
        this.itemView = itemView;
        ivImg = itemView.findViewById(R.id.iv_img);
        tvTitle = itemView.findViewById(R.id.tv_title);
        tvAuthor = itemView.findViewById(R.id.tv_author);
        tvDate = itemView.findViewById(R.id.tv_date);

    }
}
